package JavaEE_notes.common_API.Thread.pojo;

/**
 * 取钱的线程
 * @author TaiZai
 * @data 2024/9/24 20:08
 */
public class DrawThread extends Thread {
    private Account acc;

    public DrawThread(Account acc, String name) {
        super(name);
        this.acc = acc;
    }

    @Override
    public void run() {
        // 取钱
        acc.drawMoney(100000);
    }
}
